[I2P.socket](https://pypi.org/I2P.socket)
==========


Requirements:

* [Python](https://www.python.org/) >= 3.4 

* [Java I2P](https://geti2p.net/en/) >= 0.9.14 or [I2Pd](https://i2pd.website/) >= 2.17.0



Installing from:

* pypi:


              pip install I2P.socket


* git:


              git clone https://notabug.org/ProtectiveDome/i2p.socket
              cd i2p.socket
              python setup.py install



Usage:
          
          from I2P import socket
          
          # I2P socket
          sock = socket.socket()
          sock.connect(("i2p-projekt.i2p", 80))
          sock.send(b"GET /\r\n\r\n")
          print (sock.recv(1024))
          sock.close()
          
          # also works as 'regular' socket
          sock = socket.socket(socket.AF_INET) 
          sock.connect(("geti2p.net", 80))
          sock.send(b"GET /\r\n\r\n")
          print (sock.recv(1024))
          sock.close()



Attention:

* If you found error please [make an issue](https://notabug.org/ProtectiveDome/i2p.socket/issues/new) or [pull request](https://notabug.org/ProtectiveDome/i2p.socket/compare/master...master) you're changes.